-- GENERATED SPELL FOR [Felguard Marauder] --


function spell0_32393(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(23113,pUnit)
pUnit:RegisterEvent('Sorts_32393', 6252, 1)
end

function spell1_32393(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32393', 554, 1)
end

function spell2_32393(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(18072,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32393', 576, 1)
end

function Sorts_32393(pUnit, Event)
local choix_sorts_32393 = math.random(0, 2)
if choix_sorts_32393 == 0 then
pUnit:RegisterEvent('spell0_32393', 1, 1)
end
if choix_sorts_32393 == 1 then
pUnit:RegisterEvent('spell1_32393', 1, 1)
end
if choix_sorts_32393 == 2 then
pUnit:RegisterEvent('spell2_32393', 1, 1)
end
end

function mob32393_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32393', math.random(1500, 3000), 1)
end

function mob32393_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32393_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32393_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32393, 1, 'mob32393_Action')
RegisterUnitEvent(32393, 2, 'mob32393_Leave')
RegisterUnitEvent(32393, 3, 'mob32393_Kill')
RegisterUnitEvent(32393, 4, 'mob32393_Die')
